FROM centos_with_java11
MAINTAINER "hongmin.shm@aliyun.com"

EXPOSE 7001
ADD /treasure-web/target/ai-treasure-chest-release-1.0.jar /ai-treasure-chest/ai-treasure-chest-release.jar

ENV TZ 'Asia/Shanghai'
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV JAVA_OPTS="-server -Xmx512m -Xms512m"
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.awt.headless=true -Dspring.flyway.enabled=false -Dserver.port=7001 -Duser.timezone=Asia/Shanghai -Dspring.profiles.active=pgvector -jar /ai-treasure-chest/ai-treasure-chest-release.jar" ]